complete the Clear operation